{layout name="public/layout" /}
{include file='yxnavbar'}


<div class="main">
    {include file='../../plugin/daiyan/template/web/common_nav'}
    <div class="panel panel-info">
        <div class="panel-heading">当前数量： {$page_total}</div>
        <div class="panel-body">
            <form id="myform" action="./index.php" method="get" class="form-horizontal" role="form">
                <input type="hidden" name="c" value="site" />
                <input type="hidden" name="a" value="entry" />
                <input type="hidden" name="m" value="{$_P['m']}" />
                <input type="hidden" name="do" value="web" />
                <input type="hidden" name="uid" value="{$uid}" />
                <input type="hidden" name="themeid" value="{$themeid}" />
                <input type="hidden" name="r" value="daiyan.index.searchLiked" id="r" />
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-1 control-label">更新时间</label>
                    <div class="col-sm-3 col-lg-3 col-md-3 col-xs-6">
                        <!--                        {php echo view_form_field_daterange('createtime', array('start' => $start_day, 'end' => $end_day));}-->
                        {php echo view_form_field_daterange('createtime', array('start'=>date('Y-m-d H:i:s',$starttime),'end'=>date('Y-m-d H:i:s',$endtime)), true);}
                    </div>

                </div>
                <div class="form-group clearfix">
                    <label class="col-xs-12 col-sm-3 col-md-1 control-label">关键字</label>
                    <div class="col-sm-4 col-xs-4 col-md-4">
                        <input class="form-control" name="search_data" placeholder="输入报名手机号、微信昵称、客资姓名" type="text" value="{$_P['search_data']}">
                    </div>
                    <div class="col-sm-3 col-lg-3 col-md-3 col-xs-6">
                        <button class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button>
                        <input type="hidden" name="__token__" value="{$Request.token}"/>
                    </div>
                </div>
            </form>
        </div>
    </div>


    <div class="tab-content">
        <div class="panel panel-default">
            <div class="panel-body table-responsive">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th style="width: 50px">序号</th>
                        <th style="width: 100px">用户昵称</th>
                        <th style="width: 100px">用户报名信息</th>
                        <th style="width: 100px">用户头像</th>
                        <th style="width: 120px">点赞时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list $index $item}
                    <tr>
                        <td>{php echo $index+1;}</td>
                        <td>{$item['nickname']}</td>
                        <td>{$item['username']}<br/>{$item['mobile']}</td>
                        <td>
                            <img src="{php echo tomedia($item['avatar']);}" style="width: 40px;height: 40px;padding: 1px;">
                        </td>
                        <td>
                            {$item['created_at']}
                        </td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

{$pager}
<script type="text/javascript">
    $(document).ready(
        function (){

        }
    );
</script>
